package com.brand.prisd.ViewHolder;

import android.support.annotation.NonNull;
import android.support.constraint.ConstraintLayout;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.brand.prisd.R;

import butterknife.BindView;
import butterknife.ButterKnife;

import static com.brand.prisd.bean.VariableStorage.Type3ViewHolder_TextView_Filed;

/**
 * Created by HJ on 2018/12/29.
 */
public class Type3ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.cl_container)
    ConstraintLayout clContainer;

    public Type3ViewHolder(@NonNull View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
        clContainer.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

    }

    public void setData(int position) {
        switch (position) {
            case 3:
                tvName.setText(Type3ViewHolder_TextView_Filed[0]);
                break;
            case 4:
                tvName.setText(Type3ViewHolder_TextView_Filed[1]);
                break;
            case 6:
                tvName.setText(Type3ViewHolder_TextView_Filed[2]);
                break;
            case 7:
                tvName.setText(Type3ViewHolder_TextView_Filed[3]);
                break;
            case 9:
                tvName.setText(Type3ViewHolder_TextView_Filed[4]);
                break;
            case 10:
                tvName.setText(Type3ViewHolder_TextView_Filed[5]);
                break;
            case 12:
                tvName.setText(Type3ViewHolder_TextView_Filed[6]);
                break;
        }
    }
}
